package org.graduation.note.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.graduation.model.common.note.Note;

import java.util.Date;

public class MybatisPlusWrapperFactory {
    public static LambdaQueryWrapper<Note> getAllAlarmNote(Integer uid){
        LambdaQueryWrapper<Note> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(Note::getUid,uid);
        lambdaQueryWrapper.gt(Note::getAlarmTime,new Date());
        return lambdaQueryWrapper;
    }

}
